<?php 
if (count($vresult) > 0 ) {
 ?>
<div class="video_skill">
       <div class="bgcenter">
       	<div class="bgtop_cd bgtop_cd_order">
        	<div class="bgbt">
            	<h2 class="breadcrumb">
                    Video về <?php echo $mtitle ?>
                </h2>
                
  <?php 
    $i = 1;
  foreach ($vresult as $row) {
    $img = iUrlFile($row->url_thumbnail);
    $url = url($malias.'/video/chitiet/'.$row->alias);
   ?>              
                
                <div class="cals list_class_detail">
                    <div class="khoahoc_block cal">
                        <div class="list_class">
                                <div class="list_class_imgx"><a title="<?php echo $row->title ?>" href="<?php echo $url ?>">
                                    <img alt="<?php echo $row->title ?>" title="<?php echo $row->title ?>" width="155" height="90" src="<?php echo $img ?>" /></a>
                                    <p style="text-align: center; padding-top: 5px;">
                                        <a href="<?php echo $url ?>"><?php echo $row->title ?></a>
                                    </p>
                                </div>
                                
                            </div>
                    </div>
                    <div class="cls"></div>
                    
                </div>
  <?php 
    if ($i == 4) {
        echo '<div class="cls"></div>';
        $i = 0;
    }
    $i++;
  }
   ?>              
                
                
                
                
   
                
                  
               
                
                <div class="cls"></div> <?php //auto height ?>
        	</div>
            
            <!--[if IE 7]>
              	<div class="cls"></div>
            <![endif]-->
                       
        </div>
        </div>
       </div>
  <?php 
  }
   ?>